using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TonGiaoService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: TonGiaoService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TonGiaoService : ITonGiaoService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TonGiao_ID</para>
		/// <para>Output: TonGiaoEntity</para>
		///</summary>
		public TonGiaoEntity SelectOne(int TonGiao_ID){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectOne(TonGiao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaTonGiao</para>
		/// <para>Input: MaTonGiao</para>
		/// <para>Output: TonGiaoEntity</para>
		///</summary>
		public TonGiaoEntity SelectOneByMaTonGiao(string MaTonGiao){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectOneByMaTonGiao(MaTonGiao);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TonGiaoEntity</para>
		///</summary>
		public List<TonGiaoEntity> SelectAll(){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TonGiaoEntity</para>
		///</summary>
		public List<TonGiaoEntity> SelectAllFilter(string strFilter){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TonGiaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TonGiaoEntity o){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TonGiaoEntity</para>
		/// <para>Output: TonGiaoEntity</para>
		///</summary>
		public TonGiaoEntity SaveRet(TonGiaoEntity o){
			TonGiaoDAO dao = new TonGiaoDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TonGiaoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TonGiaoEntity> list){
			TonGiaoDAO dao = new TonGiaoDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TonGiaoEntity</para>
		/// <para>Output: List of TonGiaoEntity</para>
		///</summary>
		public List<TonGiaoEntity> SaveListRet(List<TonGiaoEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: TonGiaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TonGiaoEntity o){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TonGiaoEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TonGiaoEntity> list){
			TonGiaoDAO dao = new TonGiaoDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaTonGiao</para>
		/// <para>Input: NewMaTonGiao,TonGiao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaTonGiao(string NewMaTonGiao,int TonGiao_ID){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.UpdateMaTonGiao(NewMaTonGiao,TonGiao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenTonGiao</para>
		/// <para>Input: NewTenTonGiao,TonGiao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTonGiao(string NewTenTonGiao,int TonGiao_ID){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.UpdateTenTonGiao(NewTenTonGiao,TonGiao_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaTonGiao</para>
		/// <para>Input: NewMoTaTonGiao,TonGiao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaTonGiao(string NewMoTaTonGiao,int TonGiao_ID){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.UpdateMoTaTonGiao(NewMoTaTonGiao,TonGiao_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TonGiaoEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TonGiaoEntity o){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TonGiao_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TonGiao_ID){
			TonGiaoDAO dao = new TonGiaoDAO();
			return dao.DeleteByID(TonGiao_ID);
		}
		#endregion

		#region Select,delete by TonGiao_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TonGiaoWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

